package com.qianya.weishi_server.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.qianya.weishi_server.mapper.ItemQuestionMapper;
import com.qianya.weishi_server.entity.ItemQuestion;
import com.qianya.weishi_server.service.ItemQuestionService;

@Service
public class ItemQuestionServiceImpl implements ItemQuestionService {

    @Resource
    private ItemQuestionMapper itemQuestionMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return itemQuestionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ItemQuestion record) {
        return itemQuestionMapper.insert(record);
    }

    @Override
    public int insertSelective(ItemQuestion record) {
        return itemQuestionMapper.insertSelective(record);
    }

    @Override
    public ItemQuestion selectByPrimaryKey(Integer id) {
        return itemQuestionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ItemQuestion record) {
        return itemQuestionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ItemQuestion record) {
        return itemQuestionMapper.updateByPrimaryKey(record);
    }

    @Override
    public int batchInsert(List<ItemQuestion> list) {
        return itemQuestionMapper.batchInsert(list);
    }

}



